package cn.cainiao;

import cn.cainiao.dao.impl.PackageDaoImpl;
import cn.cainiao.dao.impl.PageDaoImpl;
import cn.cainiao.entity.Packages;

import java.util.ArrayList;
import java.util.List;

public class test {
    public static void main(String[] args) {
        //查询所有包裹
//        PackageDaoImpl p = new PackageDaoImpl();
//        List<Packages> list = new ArrayList<>();
//        list = p.allPackage();
//        for (Packages V : list
//        ) {
//            System.out.println(V.getLogistics());
        //删除包裹信息
//        p.delectpackage("YT10000");

        PackageDaoImpl p = new PackageDaoImpl();
        List<Packages> list = new ArrayList<>();
        list = p.qieryPackageBy("白羽飞");
        for (Packages V : list
        ) {
            System.out.println(V.getPhone());
        }
    }
}